package com.cnswhy.cloud.server.core.dto;

import com.cnswhy.cloud.server.common.entity.enumeration.WalletType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-14
 */
@Data
//@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CustomerWalletTransDtlPageDTO", description = "")
public class CustomerWalletTransDtlPageDTO extends WalletTransDtlPageDTO {


    private static final long serialVersionUID = 1618644505873485888L;
    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @NotNull(message = "客户ID不能为空")
    private Long customerId;

    @ApiModelProperty(value = "登录账号")
    @NotNull(message = "登录账号不能为空")
    private String loginName;

    /**
     * 钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}
     */
    @ApiModelProperty(value = "钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}")
    @NotNull(message = "钱包类型")
    //@TableField("wallet_type")
    //@Excel(name = "钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}", replace = {"余额_BALANCE", "拼购券_COUPON", "拼团值_SPELL_VALUE", "贡献值_CONTRIBUTION_VALUE", "拼团收益_SPELL_BALANCE", "拼团收益_CONTRIBUTION_BALANCE", "爱心收益_LOVE_BALANCE", "分享收益_SHARE_BALANCE",  "_null"})
    private WalletType walletType;

    private LocalDateTime createDateSt;
    private LocalDateTime createDateEnd;
    private Integer type;
}
